All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.std.movies.AtomData
java.lang.Object
|
+----quicktime.QTObject
|
+----quicktime.util.QTPointerRef
|
+----quicktime.std.movies.AtomData
- public final class AtomData
- extends QTPointerRef
This is a Read Only structure that is used to read the values that are stored in an atom of an
AtomContainer. To store or alter these values you should use the appropriate methods in the
AtomContainer class.
-
getByte(int)
- Get the byte value at the given position(offset) within the native object.
-
getBytes(int, int)
- Returns the byte values at the given position(offset) within the object's memory area.
-
getCString(int)
- Returns the C string found at the offset as a java.lang.String
-
getDouble(int)
- Get the double value at the given position(offset) within the native object.
-
getFloat(int)
- Get the float value at the given position(offset) within the native object.
-
getInt(int)
- Get the int value at the given position(offset) within the native object.
-
getLong(int)
- Get the long value at the given position(offset) within the native object.
-
getPString(int)
- Returns the Pascal string found at the offset as a java.lang.String
-
getShort(int)
- Get the short value at the given position(offset) within the native object.
getByte
public byte getByte(int offset) throws IndexOutOfBoundsException
- Get the byte value at the given position(offset) within the native object.
- Parameters:
- offset - the given number of bytes to offset
- Returns:
- the byte value at the offset.
- Throws: IndexOutOfBoundsException
- is thrown if the offset is larger than the size of the data
getShort
public short getShort(int offset) throws IndexOutOfBoundsException
- Get the short value at the given position(offset) within the native object.
- Parameters:
- offset - the given number of bytes to offset
- Returns:
- the short value at the offset.
- Throws: IndexOutOfBoundsException
- is thrown if the offset is larger than the size of the data
getInt
public int getInt(int offset) throws IndexOutOfBoundsException
- Get the int value at the given position(offset) within the native object.
- Parameters:
- offset - the given number of bytes to offset
- Returns:
- the int value at the offset.
- Throws: IndexOutOfBoundsException
- is thrown if the offset is larger than the size of the data
getLong
public long getLong(int offset) throws IndexOutOfBoundsException
- Get the long value at the given position(offset) within the native object.
- Parameters:
- offset - the given number of bytes to offset
- Returns:
- the long value at the offset.
- Throws: IndexOutOfBoundsException
- is thrown if the offset is larger than the size of the data
getFloat
public float getFloat(int offset) throws IndexOutOfBoundsException
- Get the float value at the given position(offset) within the native object.
- Parameters:
- offset - the given number of bytes to offset
- Returns:
- the float value at the offset.
- Throws: IndexOutOfBoundsException
- is thrown if the offset is larger than the size of the data
getDouble
public double getDouble(int offset) throws IndexOutOfBoundsException
- Get the double value at the given position(offset) within the native object.
- Parameters:
- offset - the given number of bytes to offset
- Returns:
- the double value at the offset.
- Throws: IndexOutOfBoundsException
- is thrown if the offset is larger than the size of the data
getCString
public String getCString(int offset) throws UtilException, IndexOutOfBoundsException
- Returns the C string found at the offset as a java.lang.String
- Parameters:
- offset - the given number of bytes to offset
- Returns:
- java.lang.String representation
- Throws: IndexOutOfBoundsException
- is thrown if the offset is larger than the size of the data
getPString
public String getPString(int offset) throws UtilException, IndexOutOfBoundsException
- Returns the Pascal string found at the offset as a java.lang.String
- Parameters:
- offset - the given number of bytes to offset
- Returns:
- java.lang.String representation
- Throws: IndexOutOfBoundsException
- is thrown if the offset is larger than the size of the data
getBytes
public byte[] getBytes(int offset,
int length) throws IndexOutOfBoundsException
- Returns the byte values at the given position(offset) within the object's memory area.
- Parameters:
- offset - the given number of bytes to locate the struct.
- length - the given number of bytes of memory. The maximum length that will be copied is
(size - offset) bytes. If zero then this will return all of the available bytes from the offset.
- Returns:
- the byte array
- Throws: IndexOutOfBoundsException
- is thrown if the offset is larger than the size of the data
All Packages Class Hierarchy This Package Previous Next Index